package mockup;

/**
 * This is a message that will be sent from an appointment
 * to a user. Each user gets a different message.
 * @author daniel
 */
public class MessageMockup extends Mockup implements Comparable<MessageMockup> {
	
	private int meetingId;
	private int receiverId;
	private String subject;
	private String description;
	private long sendTime;
	private long readTime;
		
	/**
	 * Constructor
	 */
	public MessageMockup(int id, int meetingId) {
		super(id);
		this.meetingId = meetingId;
		}
	
	public MessageMockup(int id, int meetingId, int receiverId, String subject, String description, long sendTime, long readTime) {
		this(id, meetingId);
		this.receiverId = receiverId;
		this.subject = subject;
		this.description = description;
		this.sendTime = sendTime;
		this.readTime = readTime;
	}
	
	public int getMeeting() {
		return meetingId;
	}
	
	public int getReceiver() {
		return receiverId;
	}

	public void setReceiver(int receiverID) {
		this.receiverId = receiverID;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getSendTime() {
		return sendTime;
	}

	public void setSendTime(long sendTime) {
		this.sendTime = sendTime;
	}

	public long getReadTime() {
		return readTime;
	}

	public void setReadTime(long readTime) {
		this.readTime = readTime;
	}
	
	@Override
	public int compareTo(MessageMockup o) {
		//TODO: write method based on Strings (SendTime)
		return 0;
	}
}